package ZuoYe4_forXunHuan_0421;

import java.util.Scanner;

public class ZuoYe2_YinShiFenJie {

	public static void main(String[] args) {
		// 2：将一个正整数分解质因数。例如：输入90,打印出90=2*3*3*5。
		Scanner input = new Scanner(System.in);
		System.out.print("输入一个整数:");
		int num = input.nextInt();
		System.out.print(num + "=");
		int i = 2;
		while (num != i) {
			if (num % i == 0) {
				System.out.print(i + "*");
				num = num / i;
			} else {
				i++;
			}
		}
		System.out.print(num);

	}

}
